package com.usian.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.usian.model.admin.dtos.NewsAuthDto;
import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.media.dtos.WmNewsDto;
import com.usian.model.media.dtos.WmNewsPageReqDto;
import com.usian.model.media.pojos.WmNews;
import com.usian.model.media.pojos.WmNewsVo;

import java.util.List;

public interface WmNewsService extends IService<WmNews> {
    ResponseResult findPage(WmNewsPageReqDto dto);

    ResponseResult submitNews(WmNewsDto dto,Short isSubmit);

    ResponseResult findByNewId(Integer id);

    ResponseResult delByNewId(Integer id);

    ResponseResult downOrUp(WmNewsDto dto);

    ResponseResult updateByStatus(WmNews wmNews);

    List<Integer> findNews();

    ResponseResult findList(NewsAuthDto dto);

    WmNewsVo findWmNewsVo(Integer id);
}
